package com.ruoyi.common.utils;

import com.fasterxml.jackson.databind.ObjectMapper;

import java.util.Map;

/**
 * @author xumh
 * @title: ListMapObjectUtils
 * @description: TODO
 * @date 2024/12/12 15:04
 */
public class ListMapObjectUtils {

    /**
     * Object转map
     * make by xumh on 2024-12-10
     * @param obj
     * @return
     */
    public static Map<String, Object> objectToMap(Object obj) {
        ObjectMapper objectMapper = new ObjectMapper();
        return objectMapper.convertValue(obj, Map.class);
    }


}
